#ifndef __CPPTUTORNESTEDFRIEND_H__
#define __CPPTUTORNESTEDFRIEND_H__

class CcppTutorNestedFriend
{
	private:
		int m_nNestedFriend;
	public:
		CcppTutorNestedFriend ();
	   ~CcppTutorNestedFriend ();

	    class CFriend;			//	first declare the friend class
		friend class CFriend;	//	second declare it as a friend
		class CFriend			//	third define the class
		{
			private:
				int m_nFriend;
			public:
				CFriend ();
			   ~CFriend ();
			    void m_FriendAccessNestedFriendData (CcppTutorNestedFriend*);
		};
};

#endif //__CPPTUTORNESTEDFRIEND_H__